<?php
	
	include('cms.php');
	
	Cms::nocache();
	
	if(isset($_GET['iduser'])){
		$iduser = DataLatte::escape($_GET['iduser']);
		echo json_encode( DataLatte::arrayof('User', "SELECT * FROM cmsUser WHERE iduser = '$iduser'") );	
	}else{
		echo json_encode( DataLatte::arrayof('User', "SELECT * FROM cmsUser ORDER BY nick ASC") ); 
	}
	
?>